<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			window.onload = function() {
				//var divs = document.getElementsByTagName("div");
				//var div = divs[0];
				var div = document.getElementsByTagName("div")[0];
				console.log(div);
				console.log(div.firstChild);//文本节点标签对象
				console.log(div.firstChild.wholeText);//文本节点标签里面内容
				console.log(div.innerHTML);
				console.log(div.innerText);
			}
		</script>
	</head>
	<body>
		<div>today is very <b>good.</b></div>
	</body>
</html>
